﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MedicalCare.EntityDefinitions.Entities;
using MedicalCare.Messages;

namespace MedicalCare.DbLayer.Adaptors
{
    public interface IUserAdaptor: IDbAdaptor<UserMessage, UserEntity>
    {
        UserMessage LoadCurrentUser(LoginMessage message);
        IList<UserEntity> GetUsers(string orderKey, string orderVal,
                   int pageIndex, int pageSize, string whereStr);

        IList<UserEntity> GetUsers(string orderKey, string orderVal,string whereStr);
        IList<UserRoleEntity> GetAllUserRole();

        //Champion 2013/1/4
        int DeleteUserById(UserMessage msg);
        //Champion 2013/1/5
        IList<ProvinceEntity> GetAllProvince();
        IList<CityEntity> GetCityListByProId(int ProID);
        IList<DistrictEntity> GetDistrictListByCityId(int CityID);
    }
}
